package com.uplooking.service.impl;

import java.util.List;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Propagation;
import org.springframework.transaction.annotation.Transactional;

import com.uplooking.dao.DictMapper;
import com.uplooking.pojo.DictVO;
import com.uplooking.pojo.DictVOExample;
import com.uplooking.service.DictService;

@Service("dictService")
public class DictServiceImpl implements DictService {

	@Autowired
	private DictMapper dictMapper;

	@Override
	@Transactional(propagation = Propagation.SUPPORTS)
	public List<DictVO> getDictListById(int tid) {
		DictVOExample example = new DictVOExample();
		example.createCriteria().andDttidEqualTo(tid);
		return dictMapper.selectByExample(example);
	}

}
